#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>

class MyPushButton : public QPushButton
{
    Q_OBJECT
public:
    //explicit MyPushButton(QWidget *parent = nullptr);
    MyPushButton(QString normalImage, QString pressImage = "");
    void zoom();
    virtual void mousePressEvent(QMouseEvent*);
    virtual void mouseReleaseEvent(QMouseEvent*);
    void setNum(QString label);
    void showMyLabel();
private:
    QString normalImage;//按下前显示图片路径
    QString pressImage;//按下后显示图片路径
    QString label;

signals:
};

#endif // MYPUSHBUTTON_H
